package com.mpdbailey.cleverdicandroid;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;

public final class DictionaryReader
{
	public static List<String> LoadDictionary(InputStream inputStream)
			throws IOException
	{
		ArrayList<String> list = new ArrayList<String>();
		InputStreamReader isr = new InputStreamReader(inputStream);
		BufferedReader br = new BufferedReader(isr);
		String line;
		while ((line = br.readLine()) != null)
		{
			list.add(line);
		}

		return list;
	}

}
